extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]护教骑士战旗"
	info = "战斗开始时，每存在一位与佩戴者同阵营的舰娘，佩戴者提高15点四维\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.airL = 0.05
	att.atkL = 0.05
	att.mgiAtkL = 0.05
	att.defL = 0.05

func _connect():
	._connect()
	sys.main.connect("onBattleStart", self, "start")

func start():
	if utils.inBattle(masCha):
		var bf = b_hujiaoqishizq.new()
		masCha.addBuff(bf)
		for i in masCha.getAllChas(2):
			if i.camp == masCha.camp:
				bf.att.atk += 15
				bf.att.mgiAtk += 15
				bf.att.def += 15
				bf.att.air += 15

class b_hujiaoqishizq:
	extends "../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_hujiaoqishizq"
		dispel = 2

func upgrade():
	name = "[color=#FFFF00][史诗]护教骑士战旗"
	info = "战斗开始时，每存在一位与佩戴者同阵营的舰娘，佩戴者提高15点四维"
	att.airL = 0.1
	att.atkL = 0.1
	att.mgiAtkL = 0.1
	att.defL = 0.1

